package com.hl.service;

import com.hl.mapper.ShouFeiMapper;
import com.hl.pojo.Charge;
import com.hl.pojo.Consultants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShouFeiServiceImpl implements ShouFeiService{
    @Autowired
    private ShouFeiMapper shouFeiMapper;
    @Override
    public List<Charge> getShouFeiMessage() {
        return shouFeiMapper.getShouFeiMessage();
    }

    @Override
    public List<Charge> getShouFeiMessageByName(String consultantName) {
        return shouFeiMapper.getShouFeiMessageByName(consultantName);
    }

    @Override
    public String deleteShouFei(Integer id) {
        int affect = shouFeiMapper.deleteShouFei(id);
        String s = affect == 1 ? "删除成功" : "删除失败";
        return s;
    }
}
